#!/sbin/openrc-run

command="/usr/bin/sish"
command_args="--config ${config_path:-/etc/sish/config.yml}"
command_user="sish:sish"
command_background=true
pidfile="/run/$RC_SVCNAME.pid"

output_log="/var/log/sish.log"
error_log="/var/log/sish.log"

depend() {
	need net
}

start_pre() {
	checkpath -d -m 0755 -o "$command_user" /var/lib/sish
	checkpath -f -m 0644 -o "$command_user" "$output_log"
}
